package org.ksoap2.transport;

import java.io.IOException;
import java.net.Proxy;
import okhttp3.OkHttpClient;

/* loaded from: classes2.dex */
public class OkHttpTransportSE extends HttpTransportSE {
    protected final OkHttpClient client;

    public OkHttpTransportSE(Proxy proxy, String str) {
        super(proxy, str);
        this.client = null;
    }

    public OkHttpTransportSE(Proxy proxy, String str, int i) {
        super(proxy, str, i);
        this.client = null;
    }

    public OkHttpTransportSE(Proxy proxy, String str, int i, int i2) {
        super(proxy, str, i, i2);
        this.client = null;
    }

    public OkHttpTransportSE(OkHttpClient okHttpClient, Proxy proxy, String str, int i, int i2) {
        super(proxy, str, i, i2);
        this.client = okHttpClient;
    }

    public OkHttpTransportSE(String str) {
        super(str);
        this.client = null;
    }

    public OkHttpTransportSE(String str, int i) {
        super(str, i);
        this.client = null;
    }

    public OkHttpTransportSE(String str, int i, int i2) {
        super(str, i, i2);
        this.client = null;
    }

    @Override // org.ksoap2.transport.HttpTransportSE, org.ksoap2.transport.Transport
    public ServiceConnection getServiceConnection() throws IOException {
        OkHttpClient okHttpClient = this.client;
        if (okHttpClient == null) {
            return new OkHttpServiceConnectionSE(this.proxy, this.url, this.timeout);
        }
        return new OkHttpServiceConnectionSE(okHttpClient, this.proxy, this.url, this.timeout);
    }
}
